home *** CD-ROM | disk | FTP | other *** search
/ SGI Origin & Onyx2 Patches 1998 May / Origin and Onyx2 System Disk Patches May 1998.img / dist / patchSG0002842.idb / etc / init.d / fcagent.z / fcagent
Text File  |  1998-03-05  |  1KB  |  53 lines

  1. #!/bin/sh
  2. #
  3. # Start and stop fcagent(1M)
  4. #
  5. # Copyright 1994 Silicon Graphics, Inc.
  6. # All rights reserved.
  7. #
  8. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  9. # the contents of this file may not be disclosed to third parties, copied or
  10. # duplicated in any form, in whole or in part, without the prior written
  11. # permission of Silicon Graphics, Inc.
  12. #
  13. # RESTRICTED RIGHTS LEGEND:
  14. # Use, duplication or disclosure by the Government is subject to restrictions
  15. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  16. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  17. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  18. # rights reserved under the Copyright Laws of the United States.
  19. #
  20. # $Revision: 1.3 $
  21.  
  22. IS_ON=/etc/chkconfig
  23. FCAGENT=/usr/sbin/fcagent
  24. FCAGENT_CFG=/etc/config/fcagent.options
  25.  
  26. if $IS_ON verbose ; then
  27.     ECHO=echo
  28.     VERBOSE=-v
  29. else            # For a quiet startup and shutdown
  30.     ECHO=:
  31.     VERBOSE=
  32. fi
  33.  
  34. case "$1" in
  35. 'start')
  36.     if $IS_ON fcagent && test -x $FCAGENT && test -f $FCAGENT_CFG; then
  37.         $ECHO "Fibre Channel daemons: fcagent\c"
  38.         $FCAGENT $FCAGENT_CFG 2> /dev/null &
  39.         $ECHO "."
  40.     fi
  41.     ;;
  42.  
  43. 'stop')
  44.     if test -x $FCAGENT; then
  45.         killall fcagent
  46.     fi
  47.     ;;
  48.  
  49. *)
  50.     echo "usage: $0 {start|stop}"
  51.     ;;
  52. esac
  53.